from flask import Flask, Blueprint
from flask_restful import Api, Resource

app = Flask(__name__)
user_bp = Blueprint('user', __name__)
user_api = Api(user_bp)


class UserResource(Resource):
    def get(self):
        return {"name":"sn"}


user_api.add_resource(UserResource, '/users/')
app.register_blueprint(user_bp)


if __name__ == '__main__':
    app.run()

